package com.plusfoursix.game;

public class Background extends GameObject {

	@Override
	public void logic() {
		// Log.d("Position:", String.valueOf(Globals.SCREEN_HEIGHT));
		if (sprite.getY() <= Globals.SCREEN_HEIGHT) {
			sprite.setY(sprite.getY() + 2);
		} else {
			sprite.setY(-600);
		}
	}

	@Override
	public int getGraphic() {
		return R.drawable.bg;
	}

}